package com.vic.dubbo.lrucache;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class DubboConsumerCacheService {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(
                "dubbo-client.xml");
        context.start();
        CacheService cacheService = (CacheService)context.getBean("cacheService");
        for(int i = 0;i <100;i++){
            System.out.println(cacheService.getResultByName("Lyn"));
        }
    }
}
